<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奇幻故事生成器 - 为孩子创造魔法世界</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-color: #6366f1;
            --secondary-color: #ec4899;
            --accent-color: #fbbf24;
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --bg-gradient-start: #ddd6fe;
            --bg-gradient-end: #fce7f3;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* 动画定义 */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        @keyframes sparkle {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

        @keyframes slideInLeft {
            from { transform: translateX(-100px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideInRight {
            from { transform: translateX(100px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes fadeInUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* Hero 区域 */
        .hero-section {
            position: relative;
            padding: 80px 20px;
            text-align: center;
            overflow: hidden;
        }

        .hero-bg-decoration {
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
            animation: float 6s ease-in-out infinite;
        }

        .decoration-1 { top: -100px; left: -100px; animation-delay: 0s; }
        .decoration-2 { bottom: -150px; right: -150px; animation-delay: 3s; }

        .hero-title {
            font-family: 'Noto Serif SC', serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            animation: slideInLeft 0.8s ease-out;
        }

        .hero-subtitle {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            color: var(--text-secondary);
            margin-bottom: 40px;
            animation: slideInRight 0.8s ease-out 0.2s both;
        }

        .hero-icon {
            font-size: 4rem;
            color: var(--accent-color);
            margin-bottom: 30px;
            animation: float 3s ease-in-out infinite;
        }

        /* 主要内容区域 */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 60px;
        }

        /* 特性卡片 */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            animation: fadeInUp 0.8s ease-out both;
            position: relative;
            overflow: hidden;
        }

        .feature-card:nth-child(1) { animation-delay: 0.1s; }
        .feature-card:nth-child(2) { animation-delay: 0.2s; }
        .feature-card:nth-child(3) { animation-delay: 0.3s; }

        .feature-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
            transform: rotate(45deg);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.5rem;
            color: white;
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-primary);
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* 使用指南 */
        .guide-section {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            padding: 60px 40px;
            margin-bottom: 60px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .guide-title {
            font-family: 'Noto Serif SC', serif;
            font-size: 2.5rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .guide-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
        }

        .guide-steps {
            display: grid;
            gap: 30px;
        }

        .guide-step {
            display: flex;
            align-items: flex-start;
            gap: 25px;
            padding: 25px;
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .guide-step:hover {
            background: rgba(99, 102, 241, 0.05);
        }

        .step-number {
            flex-shrink: 0;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
        }

        .step-content h3 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .step-content p {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* 提示词展示 */
        .prompt-section {
            background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
            border-radius: 30px;
            padding: 60px 40px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .prompt-decoration {
            position: absolute;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
        }

        .prompt-decoration-1 { top: -100px; right: -100px; }
        .prompt-decoration-2 { bottom: -100px; left: -100px; }

        .prompt-title {
            font-family: 'Noto Serif SC', serif;
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 30px;
            text-align: center;
        }

        .prompt-content {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            font-family: 'Noto Sans SC', monospace;
            line-height: 1.8;
            max-height: 600px;
            overflow-y: auto;
            position: relative;
        }

        .prompt-content::-webkit-scrollbar {
            width: 8px;
        }

        .prompt-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .prompt-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }

        .prompt-highlight {
            background: rgba(251, 191, 36, 0.2);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 500;
        }

        /* 数据可视化 */
        .visualization-section {
            margin: 60px 0;
            padding: 60px 40px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .visualization-title {
            font-family: 'Noto Serif SC', serif;
            font-size: 2.5rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 50px;
        }

        .mermaid-container {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .hero-section {
                padding: 60px 20px;
            }

            .guide-section,
            .prompt-section {
                padding: 40px 20px;
            }

            .guide-step {
                flex-direction: column;
                text-align: center;
            }

            .step-number {
                margin: 0 auto;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 星星动画 */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .star {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            animation: sparkle 3s ease-in-out infinite;
        }

        /* 微交互 */
        .interactive-element {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .interactive-element:hover {
            transform: scale(1.05);
        }

        /* 首字下沉 */
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 10px;
            margin-top: 5px;
            color: var(--primary-color);
            font-family: 'Noto Serif SC', serif;
        }
    </style>
</head>
<body>
    <!-- 星星背景 -->
    <div class="stars" id="stars"></div>

    <!-- Hero 区域 -->
    <section class="hero-section">
        <div class="hero-bg-decoration decoration-1"></div>
        <div class="hero-bg-decoration decoration-2"></div>
        
        <div class="hero-icon">
            <i class="fas fa-magic"></i>
        </div>
        
        <h1 class="hero-title">奇幻故事生成器</h1>
        <p class="hero-subtitle">为 6-12 岁儿童创造专属的魔法冒险世界</p>
    </section>

    <!-- 主要内容 -->
    <main class="main-content">
        <!-- 特性介绍 -->
        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-palette"></i>
                </div>
                <h3 class="feature-title">个性化创作</h3>
                <p class="feature-description">根据孩子喜欢的动物和颜色，量身定制独一无二的奇幻故事，让每个故事都充满个人色彩。</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-book-open"></i>
                </div>
                <h3 class="feature-title">互动式阅读</h3>
                <p class